<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "https://www.w3.org/TR/html4/loose.dtd">
<html lang="zh-CN"><head><meta http-equiv="Content-Type" content="text/html; charset=utf-8"><meta http-equiv="Content-Language" content="zh-CN"><link href="stylesheet.css" media="all" rel="stylesheet" type="text/css">
<title>DEALLOCATE</title>
<script> var _hmt = _hmt || []; (function() { var hm = document.createElement("script"); hm.src = "https://hm.baidu.com/hm.js?d286c55b63a3c54a1e43d10d4c203e75"; var s = document.getElementsByTagName("script")[0]; s.parentNode.insertBefore(hm, s); })(); </script>
</head><body class="REFENTRY">
<div>
<table summary="Header navigation table" width="100%" border="0" cellpadding="0" cellspacing="0">
<tr><th colspan="5" align="center" valign="bottom">PostgreSQL 8.2.3 中文文档</th></tr>
<tr><td width="10%" align="left" valign="top"><a href="sql-createview.html" accesskey="P">后退</a></td><td width="10%" align="left" valign="top"><a href="sql-createview.html">快退</a></td><td width="60%" align="center" valign="bottom"></td><td width="10%" align="right" valign="top"><a href="sql-declare.html">快进</a></td><td width="10%" align="right" valign="top"><a href="sql-declare.html" accesskey="N">前进</a></td></tr>
</table>
<hr align="LEFT" width="100%"></div>
<h1><a name="SQL-DEALLOCATE"></a>DEALLOCATE</h1>
<div class="REFNAMEDIV"><a name="AEN50036"></a><h2>名称</h2>DEALLOCATE&nbsp;--&nbsp;删除一个预备语句</div>
<a name="AEN50039"></a><a name="AEN50041"></a>
<div class="REFSYNOPSISDIV"><a name="AEN50044"></a><h2>语法</h2>
<pre class="SYNOPSIS">DEALLOCATE [ PREPARE ] <tt class="REPLACEABLE"><i>name</i></tt></pre>
</div>
<div class="REFSECT1"><a name="AEN50047"></a><h2>描述</h2>
<p><tt class="COMMAND">DEALLOCATE</tt> 用于删除前面编写的预备语句。如果你没有明确删除一个预备语句，那么它将在会话结束的时候被删除。</p>
<p>有关预备语句的更多信息。参阅 <a href="sql-prepare.html"><i>PREPARE</i></a></p>
</div>
<div class="REFSECT1"><a name="AEN50053"></a><h2>参数</h2>
<div class="VARIABLELIST">
<dl>
<dt><tt class="LITERAL">PREPARE</tt></dt>
<dd><p>这个关键字总被忽略</p></dd>
<dt><tt class="REPLACEABLE"><i>name</i></tt></dt>
<dd><p>将要删除的预备语句</p></dd>
</dl>
</div>
</div>
<div class="REFSECT1"><a name="AEN50066"></a><h2>兼容性</h2>
<p>SQL 包括一个 <tt class="COMMAND">DEALLOCATE</tt> 语句，但它只是用于嵌入式 SQL 。</p>
</div>
<div class="REFSECT1"><a name="AEN50070"></a><h2>又见</h2><a href="sql-execute.html"><i>EXECUTE</i></a>, <a href="sql-prepare.html"><i>PREPARE</i></a></div>
<div>
<hr align="LEFT" width="100%">
<table summary="Footer navigation table" width="100%" border="0" cellpadding="0" cellspacing="0">
<tr><td width="33%" align="left" valign="top"><a href="sql-createview.html" accesskey="P">后退</a></td><td width="34%" align="center" valign="top"><a href="index.html" accesskey="H">首页</a></td><td width="33%" align="right" valign="top"><a href="sql-declare.html" accesskey="N">前进</a></td></tr>
<tr><td width="33%" align="left" valign="top">CREATE VIEW</td><td width="34%" align="center" valign="top"><a href="sql-commands.html" accesskey="U">上一级</a></td><td width="33%" align="right" valign="top">DECLARE</td></tr>
</table>
</div>
</body></html>